package cn.com.chengmandian.xh.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("xh_cabinet_charge")
@ApiModel(value = "XhCabinetCharge对象", description = "")
public class XhCabinetCharge implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("订单编号")
    private String orderNo;

    @ApiModelProperty("业务类型1.城满电C端商城换电")
    private Integer businessType;

    @ApiModelProperty("业务编号")
    private String businessNo;

    @ApiModelProperty("应用ID")
    private Integer appId;

    @ApiModelProperty("用户唯一标识")
    private Integer userId;

    @ApiModelProperty("关联机柜ID")
    private Integer cabinetId;

    @ApiModelProperty("状态，1、申请验证中，2、验证成功、3验证失败、4、机柜取消")
    private Integer status;

    @ApiModelProperty("换电类型，1.扫码取新电，0.扫码换电，2.扫码退电")
    private Integer chargeType;

    @ApiModelProperty("操作步骤1.放入电池 2.等待验证 3.取走电池")
    private Integer step;

    @ApiModelProperty("状态消息")
    private String message;

    @ApiModelProperty("取消原因 1:换电操作超时 2:换电异常中断【终端异常出错】 3：没有空仓 4：没有可用电池 5：取出电池关门超时")
    private Integer cancelType;

    @ApiModelProperty("取消时间")
    private Date cancelTime;

    @ApiModelProperty("归还电池仓")
    private Integer returnAisleId;

    @ApiModelProperty("归还电池编号")
    private Integer returnBatteryId;

    private String returnBatteryNo;

    @ApiModelProperty("归还电池电量")
    private Integer returnSoc;

    @ApiModelProperty("借出电池仓")
    private Integer borrowAisleId;

    @ApiModelProperty("借出电池编号")
    private Integer borrowBatteryId;

    private String borrowBatteryNo;

    @ApiModelProperty("借出电池电量")
    private Integer borrowSoc;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

    @ApiModelProperty("创建时间")
    private Date createTime;

}
